package map;

public enum Terrain {

	STREET ("S"),
	GRASS ("G"),
	ROCK ("R"),
	DIRT ("D"),
	SAND ("5"),
	WATER ("W");
	
	private final String representation;
	private static Terrain[] all = {STREET, GRASS, ROCK, DIRT, SAND, WATER};
	
	Terrain(String string) {
		this.representation=string;
	}
	public void draw() {
		System.out.print(representation);
	}
	public static Terrain get(int index) {
		if(index>=Terrain.values().length)
			return null;
		else
			return Terrain.values()[index];
	}
}
